home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1993 / MacHack 1993.toast / MacHack™ 1987-1992 / MacHack™ '90 / Other Stuff / Demos ƒ / TOPS SoftTalk Package / MiniMacApp Headers / CWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  1.6 KB  |  58 lines  |  [TEXT/MPS ]

  1. /*
  2. ------------------------------------------------------------------------------
  3. |    Sun Microsystems, TOPS Division
  4. |    950 Marina Village Parkway
  5. |    P.O. Box 4016
  6. |    Alameda, CA 94501
  7. |    
  8. |    Copyright (c) 1989 Sun Microsystems, Inc. All rights reserved.
  9. |    
  10. |    Sun considers its source code as an unpublished, proprietary trade secret,
  11. |    and it is available only under strict license provisions. This copyright
  12. |    notice is placed here only to protect Sun in the event the source is deemed
  13. |    a published work. Disassembly, decompilation, or other means of reducing the
  14. |    object code to human readable form is prohibited by the license agreement
  15. |    under which this code is provided to the user or company in possession of
  16. |    this copy.
  17. |    
  18. |    RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the Government
  19. |    is subject to restrictions as set forth in subparagraph (c) (1) (ii) of the
  20. |    Rights in Technical Data and Computer Software clause at DFARS 52.227-7013
  21. |    and in similar clauses in the FAR and NASA FAR supplement.
  22. ------------------------------------------------------------------------------
  23. */
  24.  
  25.  
  26.  
  27. /*
  28.  
  29.     INTERFACE CWindow
  30.  
  31. */
  32.  
  33. #ifndef __CWindow__
  34. #define __CWindow__
  35.  
  36.  
  37. #include "CApplication.h"
  38. #include <WindowMgr.h>
  39.  
  40.  
  41. struct CWindow:CObject {
  42.  
  43.     WindowPtr fWmgrWindow;
  44.     Boolean fCanResize;
  45.     
  46.     void IWindow(Rect* itsBoundsRect, Str255 itsTitle, INT16 itsProc, BOOLEAN hasGoAway);
  47.     void Dispose(void);
  48.     void Activate(BOOLEAN active);
  49.     void Update(void);
  50.     void Click(EventRecord* event, INT16 part);
  51.     void DownInContent(Point downLocalPt);
  52.     void DrawContents(void);
  53.     void Invalidate(void);
  54. };
  55.  
  56.  
  57. #endif
  58.